<?php
if (!defined("HDPHP_PATH"))exit('No direct script access allowed');
$base = require APP_CONFIG_PATH.'base.php';
$db=require APP_CONFIG_PATH.'db.inc.php';
//更多配置请查看hdphp/Config/config.php
$config = array(
    /********************************数据库********************************/
    'DB_DRIVER'                     => 'mysqli',    //数据库驱动
    'DB_CHARSET'                    => 'utf8',      //数据库字符集.0.1
    'DB_PORT'                       => 3306,        //数据库连接端口
    'DB_PREFIX'                     => 'xn_',          //表前缀
    'DB_BACKUP'                     => 'backup/',   //数据库备份目录
    'UPLOAD_PATH'=>"Upload/".date("Y/m/d"),
    'TPL_TAGS'=>array('ContentTag'),
    'URL_TYPE'=>2,
    'Hook'=> array(
        'APP_INIT'=>array('InitHook')
    )
);
if(intval($base['WEB_REWRITE']) &&(empty($_GET['m']) ||$_GET['m']=='Index')){
    $config['URL_REWRITE']=1;
    $config['ROUTE']=array(
        '/^(\d+).html$/'=>"m=Index&c=Index&a=content&aid=#1",
        '/^list_(\d+).html$/'=>"m=Index&c=Index&a=category&cid=#1"
    );
}
return array_merge($config,$base,$db);
?>